package lk.service.blogspringboot.controller.basic;

import lk.service.blogspringboot.util.R;

import java.util.HashMap;
import java.util.Map;

public class BasicController {

    private Object returnData;

    public Object getReturnData() {
        return returnData;
    }

    public void setReturnData(long total, R r) {
        // 打包返回
        Map<String, Object> objectMap = new HashMap<>();
        objectMap.put("tableData", r.getData());
        objectMap.put("total", total);
        r.setData(objectMap);
    }
}

